package com.yykj.backstage.all.model.repository;

import com.yykj.backstage.all.model.entity.HospitalAgreement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalAgreementRepository extends JpaRepository<HospitalAgreement,Integer> {
    HospitalAgreement findFirstByTypeOrderByAddTimeDesc(Integer type);
}
